package org.duang.sms;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.duang.http.common.ResponseMessage;
import org.duang.http.core.inter.AsyncCallback;
import org.duang.kit.HttpKit;
import org.duang.sms.core.SmsKit;
import org.duang.sms.core.SmsMessage;

public class App {
	
	public static void main(String[] args) {
//		Map<String,String>params = new HashMap<String,String>();
//		params.put("promoCode","123456789");
//		params.put("amount","100");
//		//${coachName}教练您好，您在${courseTime}的课程马上就要上课了，如还未通过QQ加客户为好友，请尽快与客户联系，客户QQ号为${userQQ}，手机号为${userMobile}，请为客户开启一段奇妙运动之旅吧！
//		List<String> list = new ArrayList<String>();
//		list.add("13431913636");
//		list.add("13750022242");
//		list.add("13192294108");
//		SmsMessage msg = SmsKit.duang().code("31").param(params).phone(list) .send();
//		System.out.println(msg.isSuccess()+"           ###           "+msg.getContent());
		
		HttpKit.duang().url("http://www.baidu.com").get(new AsyncCallback<ResponseMessage>(){

			@Override
			public void onSuccess(ResponseMessage result) {
				System.out.println(result);
			}

			@Override
			public void onFail(Exception ex) {
				
			}
			
		});
		System.out.println("@@@@@@@@@@@@@");
	}

}
